﻿using Microsoft.AspNetCore.Mvc;
using Project.Ycm20250401.Service._20250410;

namespace Project.Ycm20250401.Net.Controllers
{
    [ApiController]
    [Route("api/[controller]/[action]")]
    public class FacadeController : ControllerBase
    {
        private readonly ReturnFacade _returnFacade;

        public FacadeController(ReturnFacade returnFacade)
        {
            _returnFacade = returnFacade;
        }
        /// <summary>
        /// Facade测试
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public bool FacadeTest()
        {
            _returnFacade.ProcessReturn("Order_123456789");
            return true;
        }
    }
}
